package com.example.javaproject;

import java.util.function.Function;

public class Dispatcher {
    public static final int runOnUiThread = 0;
    public static final int runOnIoThread = 1;

    public <T, R> Dispatcher deal(int threadType, Function<T, R> function, T t) {
        function.apply(t);
        return this;
    }

    public <T, R> Dispatcher andThen(int threadType, Function<T, R> function) {
        return this;
    }
}
